package com.avalon.erp.addon.pet.service.user.pet;

import com.avalon.core.field.Field;
import com.avalon.core.field.Fields;
import com.avalon.core.service.AbstractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class PetAdoptMessageService extends AbstractService {
    @Override
    public String getServiceName() {
        return "pet.adopt.message";
    }

    @Override
    public String getLabel() {
        return "宠物留言";
    }

    public final Field petAdoptId = Fields.createMany2one("宠物领养id",
            "pet.adopt");
    public final Field message = Fields.createString("留言");
    public final Field petUserId = Fields.createMany2one("留言人", "pet.user");
    public final Field parentId = Fields.createMany2one("上级评论", "pet.adopt.message");
    public final Field rootId = Fields.createMany2one("根评论", "pet.adopt.message");
}
